{% extends "index.html" %} {% block main %}
<div class="home_list">
    <ul id="list">

    </ul>
</div>
<script>
    (function () {
        $.get('/api/list',function (data,status) {
            console.log(data,status)
            for(var i=0;i<data.length;i++){
                $('#list').append('<li><a href="/blog/'+data[i].id+'">'+data[i].title+'</a><small style="float: right;padding: 4px 0">'+data[i].creatTime+'</small></li>')
            }
        })
    })();
</script>
{% endblock %}